<template>
<div>
   <el-carousel indicator-position="inside" trigger='click' :interval='3000'>
    <el-carousel-item v-for="(item,index) in banners" :key="index">
      <img :src="item.imageUrl" alt="">
    </el-carousel-item>
  </el-carousel>
</div>
</template>

<script>

export default {
  name:'banner',
  data() {
    return {
      
    }
  },
  props:{
    banners:Array
  },
  created() {
    
  },
}
</script>

<style lang='less' scoped>
div {
  width: 8.333333rem;
  height: 2.5rem;
  overflow: hidden;
}
img {
  width: 100%;
  height: 100%;
}
</style>